package cn.ctyun.xstore.s3.api.object;

import com.amazonaws.AmazonServiceException;
import com.amazonaws.services.s3.AmazonS3;

public class DeleteObject {
    public static void deleteObject(String bucketName, String objectKey, AmazonS3 s3) {
        try {
            s3.deleteObject(bucketName, objectKey);
        } catch (AmazonServiceException e) {
            System.err.println(e.getErrorMessage());
        }
        System.out.println("Done!");
    }
}
